//
//  TeachintTableViewCell.m
//  LiangYa_BObject
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 YuHao. All rights reserved.
//

#import "TeachintTableViewCell.h"

@implementation TeachintTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{


    self.contentView.backgroundColor = [UIColor clearColor];
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myimageView = [[UIImageView alloc] init];
        self.myimageView.layer.masksToBounds = YES;
        self.myimageView.layer.cornerRadius = 5;
        [self.contentView addSubview:self.myimageView];
        
        self.myLabel = [[NightLabel alloc] init];
        self.myLabel.textAlignment = NSTextAlignmentLeft;
        self.myLabel.textColor = [UIColor whiteColor];
        self.myLabel.font = [UIFont systemFontOfSize:17];
        [self.contentView addSubview:self.myLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    _myimageView.frame = CGRectMake(5, 5, cellWidth - 10, cellHeight - 10);
    _myLabel.frame = CGRectMake(15, cellHeight - 30, cellWidth - 20, 20);
    self.backgroundColor = [UIColor clearColor];
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
